﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Order.master" AutoEventWireup="true" CodeFile="Ordering.aspx.cs" Inherits="Ordering" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:700px">
        <tr>
            <td>
                Supplier:<asp:DropDownList ID="ddlSupplier" runat="server">
                </asp:DropDownList>
            </td>
            <td colspan="4">
                Category:<asp:DropDownList ID="ddlCategory" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
                    Text="Search" />
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <asp:GridView ID="gvInventory" runat="server" Width="700px" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Reorder Qty">
                            <ItemTemplate>
                                <asp:TextBox ID="txtReorderQty" runat="server" Height="24px" Width="36px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ControlToValidate="txtReorderQty" ErrorMessage="*" 
                                    ValidationExpression="^[1-9]*[1-9][0-9]*$"></asp:RegularExpressionValidator>
                                <br />
                            </ItemTemplate>
                            <HeaderStyle Font-Size="Smaller" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="ItemNumber" HeaderText="Item Code" />
                        <asp:BoundField DataField="Category" HeaderText="Category" />
                        <asp:BoundField DataField="ItemDesc" HeaderText="Item Desc" />
                        <asp:BoundField DataField="UOM" HeaderText="UOM" />
                        <asp:BoundField DataField="Balance" HeaderText="Balance" />
                        <asp:BoundField DataField="ReorderLevel" HeaderText="Reorder Level" />
                        <asp:BoundField DataField="OnOrderQty" HeaderText="On Order Qty" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnAddOrderRequest" runat="server" Text="Add Order Request" 
                    onclick="btnAddOrderRequest_Click" />
            </td>
            <td>
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

